import axios from 'axios'
var qs = require('qs')
const token = sessionStorage.getItem("token")
export default {
    doLogin(query) {
        return axios.post('/Users/login/', qs.stringify(query))
            .then(res => {
                return res.data
            }).catch(error => {
                console.log(error)
            })
    },
    modifyPassword(query) {
        return axios.post('/Member/updatePassword?token='+token, qs.stringify(query))
            .then(res => {
                return res.data
            }).catch(error => {
                console.log(error)
            })
    }
}
